package com.ithema.mArrayList;

import java.util.Random;
import java.util.Scanner;

public class CT {
    public static void main(String[] args) {
        int []arr1=new int[3];
        int []arr2=new int[3];
        Random r=new Random();
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i < arr1.length; i++) {
            System.out.println("请输入奇数：");
          int t =sc.nextInt();
            if(t%2==0){
                System.out.println("你输入的数有误！！");
                i--;
            }else {
                arr1[i]=t;
            }

        }
        int sum1=0;
        int sum2=0;
        for (int i = 0; i < arr2.length; i++) {
            arr2[i]=r.nextInt(26)+7;
            sum1+=arr1[i];
            sum2+=arr2[i];
        }
        System.out.println(sum1+"-----"+sum2);
    }
}
